package com.hzya.frame.utils.help;

import com.hzya.frame.webservice.cxfserver.service.IOrderWebService;
import org.apache.cxf.jaxws.JaxWsProxyFactoryBean;

/**
 * @description:
 * @author: gjh
 * @Date Created in 2018/8/10 15:59
 */
public class WebServiceHelper {

    /***
     * 调用本地webservice服务
     * @return
     */
    public static IOrderWebService getInterFace() {
        JaxWsProxyFactoryBean factoryBean = new JaxWsProxyFactoryBean();
        factoryBean.setServiceClass(IOrderWebService.class);
        factoryBean.setAddress("http://127.0.0.1:8080/maven_frame_easyui/webservice/orderWebService?wsdl");
        return (IOrderWebService) factoryBean.create();
    }
}
